package com.ruoyi.demo.service;

import com.ruoyi.demo.domain.*;

import java.util.HashMap;
import java.util.List;

public interface MonitorPointDemoService {

    int mergeMonitorListToMonitorTable(List<MonitorPointDemo> monitorPointList);

    void deleteMonitorNotInList(List<MonitorPointDemo> list);

    HashMap<String, Integer> selectTotalMonitorCountAndOnlineMonitorCount();

    List<CoalMineDemo> selectCoalMinesWithMonitors(String monitorName);

    MonitorOfflineAlarmSettingsDemo selectMonitorOfflineAlarmSettings();


    List<MonitorPointDemo> selectMonitorsThatNeedToSendOfflineAlarm(Integer setMinutes);

    int insertMonitorOfflineAlarm(List<MonitorPointDemo> monitorListThatOfflineTimeout);

    int updateAlarmStatusAsSent(List<MonitorPointDemo> monitorListThatOfflineTimeout);
}
